//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    num:1,
	data:'',
	http:getApp().globalData.map
  },
  onLoad: function () {
    this.push()
	},
	push(){
		wx.request({
			url:getApp().globalData.http+'action=newIndex',
			success:(e)=>{
				console.log(e)
				this.setData({
					data:e.data.data.lyqg.list
				})
			}
		})
	}
})
